export default {
    /**
     * weekday
     * 0    1   2   3   4       5   6
     * Sun  Mon Tue Wed Thur    Fri Sat
     */
    gernerateRenderingData: function(year, month, beginWeekday) {
        if(!year || !month) {
            var today = new Date();
            year = today.getFullYear();
            month = today.getMonth();
        }

        /**
         * weekday              本月第一天的周天
         */
        var monthFirstDay = new Date(year, month, 1);
        var weekday = monthFirstDay.getDay();

        /**
         * displayNumOfMonth    本月的天数
         */
        var monthLastDay = new Date(year, month + 1, 0);
        var displayNumOfMonth = monthLastDay.getDate() - monthFirstDay.getDate() + 1;

        /**
         * 上月展示的天数
         */
        var displayNumOfLastMonth = 0;
        if (beginWeekday < weekday) {
            displayNumOfLastMonth = weekday - beginWeekday
        }
        else if (beginWeekday === weekday) {
            displayNumOfLastMonth = 7;
        }  else {
            displayNumOfLastMonth =  7 - beginWeekday;
        }

        var displayNumOfMonth = monthFirstDay.

        var data = [];
        var beginDate =
        for(var row = 0; row < 6; row++) {
            for(var column = 0; column < 7; column++) {
                if(column === 0) { data[row] = [];}
                if(displayNumOfLastMonth > 0) {
                    data
                } else {

                }
            }
        }
    }
};